﻿// ***********************************************************************
// Assembly         : OSS.BIM
// Author           : tian_
// Created          : 12-03-2019
//
// Last Modified By : tian_
// Last Modified On : 12-03-2019
// ***********************************************************************
// <copyright file="SnowflakeUtil.cs" company="北京智帆高科科技有限公司">
//     Copyright © 北京智帆高科科技有限公司 2018
// </copyright>
// <summary></summary>
// ***********************************************************************
using ZFGK.Database;

namespace OSS.BIM.Business
{
    /// <summary>
    /// Class SnowflakeUtil.
    /// </summary>
    public class SnowflakeUtil
    {
        /// <summary>
        /// The snowflake
        /// </summary>
        private static Snowflake Snowflake = new Snowflake(1, 1);

        /// <summary>
        /// Gets the identifier.
        /// </summary>
        /// <returns>System.Int64.</returns>
        public static long GetId()
        {
            return Snowflake.GetId();
        }
    }
}
